package com.yoomiito.app.ui.songduoduo

import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import com.yoomiito.app.R
import com.yoomiito.app.base.App
import com.yoomiito.app.base.BaseLazyFragment
import com.yoomiito.app.widget.expand.ExpandView
import kotlinx.android.synthetic.main.fm_send_more.*

/**
 * findViewById找不到id，暂用SendMoreFragment代替
 */
class SendMoreFragment_: BaseLazyFragment<SendMoreFragmentPresenter>() {

    override fun getLayoutId(): Int = R.layout.fm_send_more

    override fun newP(): SendMoreFragmentPresenter = SendMoreFragmentPresenter(App.mAppConfig)

    override fun initData_kotlin(view: View?, savedInstanceState: Bundle?) {
        super.initData_kotlin(view, savedInstanceState)
        val expandView = ExpandView(context)
        val lp = LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT)
        parentLayout?.addView(expandView,lp)
    }
}